<?php

namespace Admin\Controller;

use Think\Model;

/**
 * 随机读取测试控制器
 *
 * @author zhiyuan
 *        
 */
class RandController extends AdminController {
	public function index() {
		$list=D('ItemBank')->limit(5)->order('rand()')->select();
		int_to_string ( $list );
		$this->assign ( 'list', $list );
		$this->meta_title = '随机读取测试';
		$this->display ();
	}
}

?>